#!/usr/bin/env bash

#go get -u github.com/gin-gonic/gin
#go mod init hk-video-manager
#go mod tidy
#go mod vendor


mkdir -p bin/
if [ -f "bin/hk-aksk-client" ]; then
    rm -f bin/hk-aksk-client
fi

go build -mod=vendor -v -o bin/hk-aksk-client cmd/aksk-client/main.go
if [ $? -ne 0 ]; then
    echo "build aksk-client failed"
    exit 1
fi

echo "build aksk-client is ok"
./bin/hk-aksk-client

